from django.contrib import admin
from training.course.models import *

class CourseAdmin(admin.ModelAdmin):
    list_display = ('type', 'startTime', 'endTime', 'capacity', 'teacher')
admin.site.register(Course, CourseAdmin)

class CourseTypeAdmin(admin.ModelAdmin):
    list_display = ('name', 'description')
admin.site.register(CourseType, CourseTypeAdmin)

class CategoryAdmin(admin.ModelAdmin):
    list_display = ('name', 'description')
admin.site.register(Category, CategoryAdmin)